
import {getGoodsItem} from '../../service/public'
// pages/checkOrder/checkOrder.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

    this._getGoodsItem(options.gid)


  },
  _getGoodsItem(gid){
    getGoodsItem({gid}).then(res=>{
      const data = res.data.data
      this.setData({
        list:data
      })
    })
  }


})